dear Tom
I am using a stepping motor in step-dir mode as a spindle and
want to stop its spinning motion (A) smoothly not abruptly indipendently from the coordinated motion of X Y Z axes stepping motors.
I have set up on thread nr 1 channels 0,1,2 as step-dir motion controls of XYZ axes
and set it up as a coordinate system
EnableAxis(0);
EnableAxis(1);
EnableAxis(2);
DefineCoordSystem(0,1,2,-1);
then I set up channel 3 to control in step-dir mode
the spindle axis A ( as I said I want to use a stepping motor as spindle)
I do not include the A axis channel in any coordinate system but use it as an independent stepping-motor.
EnableAxis(3)
The problem is that, while I can start and stop the motions of XYZ and A indipendently by setting up and pressing suitable user buttons on the KMotionCNC panel, the stopping of A is abrupt.
I use
MoveRel(3,10000000000)
in thread 3 to start the spindle for an indefinite time
and I use
StopMotion(ch3);
in thread 2 to stop the spindle when a suitable user button is pressed.
How can I stop a non-coordinated motion with a smooth slowdown
if it is not part of a coordinate system ?
Thank you for your kind atttention
|